/* eslint-disable prettier/prettier */
// 导入接口
import request from '../utils/request'

// TrainingPrograms 培训计划表
// 培训计划表总体信息
export const trainingProgramsAll = () => {
  return request.get('/training/scheme/all')
}
// 部门职位员工数组表
export const employeeSearch = () => {
  return request.get('/employeeSearch')
}
// 培训计划表总体信息查询
export const trainingProgramsDetail = (id) => {
  console.log('接口id', id)
  return request.get(`/training/scheme/detail/${id}`)
}
// 培训计划表总体信息编辑
export const trainingProgramsEdit = (data) => {
  return request.put('/training/scheme/edit', data)
}
// 培训计划表总体信息添加
export const trainingProgramsAdd = (data) => {
  return request.post('/training/scheme/add', data)
}

// 培训计划表总体信息添加
export const trainingProgramsDel = (data) => {
  return request.delete('/training/scheme/lot', { data: data })
}

// Evaluation 培训评估表
// 评估表所有信息
export const evalutionAll = () => {
  return request.get('/training/evaluation/all')
}
// 评估表修改
export const evalutionEdit = (data) => {
  return request.put('/training/evaluation/edit', data)
}

// DevelopmentPlanning 员工职业发展表
// 员工职业发展规划表
export const developPlanAll = () => {
  return request.get('/develop/all')
}

// 员工职业发展规划表姓名模糊搜索
export const developPlanlike = (data) => {
  return request.post('/develop/like', data)
}

// 员工职业发展规划表查看详情
export const developPlanDetail = (id) => {
    return request.get(`/develop/detail/${id}`);
    // return request.get('/develop/detail', id);
}

// 员工职业发展规划表修改
export const developPlanEdit = (data) => {
    console.log(data)
    return request.put('/develop/edit', data)
}

// 获取部门职位
export const pdNameAll = () => {
    return request.get('pdName')
}